import Request from "./request.js";
const API = {
  withdrawal: "/app/bank/card/withdrawal",
  accountAmount: "/app/bank/card/account/amount",
  monthEarnings: "/app/bank/card/month/earnings",
};

// 提现
export const withdrawal = (params) =>
  Request.post(API.withdrawal, {}, { data: params });
// 查询账户金额
export const accountAmount = (params) =>
  Request.post(API.accountAmount, {}, { data: params });
// 用户金额（个人）
export const monthEarnings = () => Request.get(`${API.monthEarnings}`);

//
// export const receiveOrder = (params) => {
//     return Request.put(API.serviceOrderReceiving, params);
// };
